<?php 
session_start();
	if (isset($_SESSION['nombre'])){
require_once('Connections/tecno.php'); 
include('scripts/fechaMysqlNormal.php');
$id = "-1";
if (isset($_REQUEST['id'])) {
  $id = $_REQUEST['id'];
}
?>
<link href="css/demo_jconfirmaction.css" rel="stylesheet" type="text/css" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="js/themes/base/ui.all.css" rel="stylesheet" />
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/ui/ui.core.js"></script>
<script type="text/javascript" src="js/jconfirmaction.jquery.js"></script>
<script type="text/javascript" src="js/ui/ui.tabs.js"></script>
<script type="text/javascript">
$(document).ready(function(){

//Para Guardar un pago de producto
$("#ver").click(function(){
		$("#cargando").css("display","inline");
		$.post('arrayCaja.php', $("#caja").serialize(),function(data){
			$('#mensaje').html(data);		
			$("#cargando").css("display", "none");
		})
	});
});
</script>
 <div id="cargando" style="display:none; top:15px; position:relative; z-index:1000; margin-left:350px;">
 	<img src="images/loading.gif" />	
 </div>
<form id="caja" name="caja" action="#">
  <fieldset>
    <legend>Caja Diaria</legend>
    <label for="fecha">Fecha:</label>
    	<input type="text" name="fecha" id="fecha" style="margin-left:5px; width:80px;" class="input-peq" value="<?php echo date("d-m-Y"); ?>" />
   	<a href="#">
   		<div id="ver" class="botonCustom" style="margin-right:400px; float:right;">Visualizar</div>
   	</a>    	       	
  </fieldset>
  <div id="mensaje"></div>
</form>
<?php
}else{
	include('error.php');
}
?>